﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ComponentInterfaceTest;

namespace ComponentTest
{
    public class ComponentTest : IServiceTest
    {
        private List<IServiceItem> items;

        public ComponentTest()
        {
            this.items = new List<IServiceItem>();
        }

        #region IServiceTest Members

        public void Execute(string message)
        {
            Console.WriteLine(message);
        }

        #endregion

        public void SetServiceTest(IServiceItem item)
        {
            this.items.Add(item);
        }

        public void ReleaseServiceTest(IServiceItem item)
        {
            this.items.Remove(item);
        }
    }
}
